package com.qf.mapper;

import com.qf.entity.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TeacherMapper {
    @Select("SELECT * FROM teacher WHERE sub_id = #{subId}")
    List<Teacher> findTeachersBySubId(Integer subId);
}
